$(document).ready(function() {
	connectionTimer = setInterval(function() {
		keepConnection();
	}, 1000);
});

function keepConnection() {
	$.getJSON("http://localhost:5079/api/connection", {
		Token : token
	}, function(data) {
	}).error(function(jqXHR, textStatus) {
		console.log("Keep connection failed");
	});
}